package com.itfreer.gis.locus.data.entity;

import java.io.Serializable;
import java.util.Date;

import com.itfreer.form.api.entity.EntityBase;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 巡护轨迹数据点
 */
@Entity(name = "gis_locus_data_item")
public class LocusDataItemEntity extends EntityBase implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * Id
	 */
	@Id
	@Column(name = "id", length = 50)
	private String id;

	/**
	 * PID
	 */
	@Column(name = "s_pid", length = 50)
	private String pid;

	/**
	 * 纬度
	 */
	@Column(name = "d_latitude", nullable = true)
	private Double latitude;

	/**
	 * 经度
	 */
	@Column(name = "d_longitude", nullable = true)
	private Double longitude;

	/**
	 * 海拔
	 */
	@Column(name = "d_altitude", nullable = true)
	private Double altitude;

	/**
	 * 速度
	 */
	@Column(name = "d_speed", nullable = true)
	private Double speed;

	/**
	 * 时间
	 */
	@Column(name = "d_time", nullable = true)
	private Date time;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getAltitude() {
		return altitude;
	}

	public void setAltitude(Double altitude) {
		this.altitude = altitude;
	}

	public Double getSpeed() {
		return speed;
	}

	public void setSpeed(Double speed) {
		this.speed = speed;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}
}
